From 1626cf1d3c65e811fa721a290b75f39f37da0ce6 Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Thu, 17 Mar 2005 16:31:29 +0000 Subject: [PATCH] made google 'real' again since output=js isn't likely to go away anytime soon. --- README | 17 +++++++++++++++++ google.c | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README b/README index 5c3f32a89..d7b0d8538 100644 --- a/README +++ b/README @@ -755,6 +755,23 @@ THE FORMATS There are many features in this file format that we don't yet support, but simple waypoint lists convert fine. + GOOGLE + + This format is designed to read the XML emitted when you tack + "&output=js" onto the end of a Google Maps route URL (use the + "link to this page" option to get a usable URL.) This allows + you to plan a route using Google Maps, then download it and use + it in your own mapping program or GPS receiver. If you use a + Unix-compatible operating system, this shell script might be + useful: + + #!/bin/sh + FROM="233 S. Wacker, Chicago, IL" + TO="1060 W. Addison, Chicago, IL" + wget -O - "http://maps.google.com/maps?q=$FROM to $TO&output=js" \ + 2>/dev/null >google_map.js + + gpsbabel -i google -f google_map.js -o gpx -F google_map.gpx DATA FILTERS diff --git a/google.c b/google.c index ffdc918ea..200f3d215 100644 --- a/google.c +++ b/google.c @@ -200,7 +200,7 @@ google_rd_deinit(void) } ff_vecs_t google_vecs = { - ff_type_internal, + ff_type_file, { ff_cap_none, ff_cap_read, ff_cap_none}, google_rd_init, NULL, -- 2.30.2